import { Pipe, PipeTransform } from '@angular/core'

@Pipe({
  name: 'estatePrice'
})
export class EstatePricePipe implements PipeTransform {
  transform(price: number): any {
    if (!price) {
      return '暂无报价'
    } else {
      return '约' + Math.floor(price / 10000) + '万'
    }
  }
}
